package com.zh.factorymode.demo.resultfactory;

public class IntResultFactory extends DefaultResultFactory<Integer>{
    public Integer CreateFromInt(int i) {
        return i;
    }

    public Integer CreateFromNull(){
        return 0;
    }

    public String getTargetTypeName() {
        return Integer.class.getName();
    }
}
